package com.only4play.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.only4play.domain.entity.UserPersonalAccountEntity;
import com.only4play.dto.PersonRegisterDto;
import com.only4play.vo.UserPersonAccountVo;
import com.only4play.vo.UserPersonVo;

/**
 * @author liyuncong
 * @version 1.0
 * @file UserPersonalAccountService
 * @brief 用户账号服务层
 * @details 用户账号服务层
 * @date 2023-11-18
 *
 * Edit History
 * ----------------------------------------------------------------------------
 * DATE                     NAME               DESCRIPTION
 * 2023-11-18               liyuncong          Created
 */
public interface UserPersonalAccountService extends IService<UserPersonalAccountEntity> {
    // 用户注册
    Boolean register(PersonRegisterDto registerDto);

    // 根据登录名查询用户数据
    UserPersonAccountVo queryByLoginUsername(String loginUsername);

    // 验证用户
    Boolean authenticate(String loginUsername, String loginPassword);
}
